import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 FdsBusinessStartRuleset 分页列表
 */
export function getFdsBusinessStartRulesetPagination(data: any) {
  return axios.get(`${context}/fdsBusinessStartRuleset/pagination`, {
    params: data,
  })
}

/**
 * 获取 FdsBusinessStartRuleset 所有数据
 */
export function getFdsBusinessStartRulesetAllList(data: any) {
  return axios.get(`${context}/fdsBusinessStartRuleset/allList`, {
    params: data,
  })
}

/**
 * 获取 FdsBusinessStartRuleset 详情
 */
export function getFdsBusinessStartRulesetDetailById(id: any) {
  return axios.get(`${context}/fdsBusinessStartRuleset/${id}`, {
    params: { id },
  })
}

/**
 * 新增 FdsBusinessStartRuleset
 */
export function addFdsBusinessStartRuleset(data: any) {
  return axios.post(`${context}/fdsBusinessStartRuleset`, data)
}

/**
 * 修改 FdsBusinessStartRuleset
 */
export function updateFdsBusinessStartRuleset(data: any) {
  return axios.put(`${context}/fdsBusinessStartRuleset`, data)
}

/**
 * 删除 FdsBusinessStartRuleset
 */
export function batchRemoveFdsBusinessStartRuleset(data: any) {
  return axios.post(`${context}/fdsBusinessStartRuleset/batchRemove`, data)
}
